import { h } from 'vue';
import DefaultTheme from 'vitepress/theme';
import { NolebaseGitChangelogPlugin } from '@nolebase/vitepress-plugin-git-changelog/client';

import '@nolebase/vitepress-plugin-git-changelog/client/style.css';

export const Theme = {
  extends: DefaultTheme,
  enhanceApp({ app }) {
    app.use(NolebaseGitChangelogPlugin);
  },
};

export default Theme;
